<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
    <title th:text="${question.title}"></title>
    <script src="/static/js/jquery-2 .0.0.min.js" type="application/javascript"></script>
    <link href="/static/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/static/css/bootstrap-theme.min.css" rel="stylesheet"/>
    <link href="/static/css/community.css" rel="stylesheet"/>
    <script src="/static/js/bootstrap.min.js" type="application/javascript"></script>

</head>

<body>
<!--导航栏-->
<nav th:insert="navigation :: nav"></nav>
<div class="container-fluid main">
    <div class="row">
        <div class="col-lg-9 col-md-12 col-sm-12 col-xs-12">
            <h3 th:text="${question.title}"></h3>
            <span class="text-desc">
                作者：<span th:text="${question.user.name}"></span>
                | 发布于：<span th:text="${#dates.format(question.gmtCreate,'yyyy-MM-dd HH:mm')}"></span>
                | 阅读数：<span th:text="${question.viewCount}"></span>
                        </span>
              <hr>
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 profile" th:text="${question.description}">

            </div>
            <hr class="col-lg-12 col-md-12 col-sm-12 col-xs-12 profile">

            <a th:href="@{'/publish/edit/'+${question.id}}" th:if="${session.user!=null && session.user.id == question.user.id}"><span class="glyphicon glyphicon-pencil"></span>编辑</a>

        </div>

        <div class="col-lg-3 col-md-12 col-sm-12 col-xs-12 profile">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 profile">
                <h4>发起人</h4>
                <div class="media">
                    <div class="media-left">
                        <a href="#">
                            <img class="sm_img img-rounded" th:src="${question.user.avatarUrl}">
                        </a>
                    </div>
                    <div class="media-body">
                        <h6 class="media-heading">
                            <span th:text="${question.user.name}"></span>
                        </h6>
                    </div>
                    <hr>
                </div>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 profile">
                <h4>相关问题</h4>
            </div>
        </div>
    </div>
</div>
</body>
</html>